//
//  BDReservationModel.m
//  BadBoy
//
//  Created by wen on 2017/7/6.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import "BDReservationModel.h"

@implementation BDReservationModel

+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"my_id":@"id",
             @"channel":@"order.channel",
             @"total_amount":@"order.total_amount",
             @"receipt_amount":@"order.receipt_amount"};
}

- (NSString *)updateString{
    if (!_updateString) {
        NSDate *date = [NSDate dateWithTimeIntervalSince1970:self.verify_at];
        NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
        NSTimeZone *timeZone = [NSTimeZone localTimeZone];
        [formatter setTimeZone:timeZone];
        [formatter setDateFormat:@"HH:mm:ss"];
        _updateString = [formatter stringFromDate:date];
    }
    return _updateString;
}

@end
